package com.talkweb.platform.commonapi.entity.db;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

@Data
@ToString
@Entity
@Table(name = "BPM_NavTreeNode")
@ApiModel(value = "BpmNavTreeNode", description = "导航树配置")
public class BpmNavTreeNode implements Serializable {
	
	@Id
	@Column(name = "WF_OrUnid")
	@GeneratedValue(strategy = GenerationType.IDENTITY, generator = "SELECT REPLACE(UUID(),'-','')")
    private String orUnId;

	@Column(name = "WF_Appid")
	@ApiModelProperty(value = "应用ID", required = false)
    private String appId;

	@Column(name = "treeid")
	@ApiModelProperty(value = "导航树id", required = false)
    private String treeid;

	@Column(name = "parentFolderid")
	@ApiModelProperty(value = "父节点", required = false)
    private String parentFolderid;

	@Column(name = "folderid")
	@ApiModelProperty(value = "节点id", required = false)
    private String folderid;

	@Column(name = "folderName")
	@ApiModelProperty(value = "节点名", required = false)
    private String folderName;

	@Column(name = "sortNum")
	@ApiModelProperty(value = "排序号", required = false)
    private String sortNum;

	@Column(name = "itemid")
	@ApiModelProperty(value = "itemid", required = false)
    private String itemid;

	@Column(name = "itemUrl")
	@ApiModelProperty(value = "url路径", required = false)
    private String itemUrl;

	@Column(name = "roles")
	@ApiModelProperty(value = "绑定的角色", required = false)
    private String roles;

	@Column(name = "totalSql")
	@ApiModelProperty(value = "计算总数的sql", required = false)
    private String totalSql;

	@Column(name = "iconCls")
	@ApiModelProperty(value = "图标", required = false)
    private String iconCls;

	@Column(name = "openType")
	@ApiModelProperty(value = "打开方式", required = false)
    private String openType;

	@Column(name = "WF_LastModified")
	@ApiModelProperty(value = "最后更新时间", required = false)
    private String lastModified;

	@Column(name = "WF_AddName")
	@ApiModelProperty(value = "创建用户", required = false)
    private String addName;

	@Column(name = "xmlData")
	@ApiModelProperty(value = "xmlData", required = false)
    private String xmlData;

    private static final long serialVersionUID = 1L;
}